/*
 * Copyright (c) 2012-2014, EpicSaaS Yuan Xin technology Co., Ltd.
 * 
 * All rights reserved.
 */
package com.epicsaas.app.ksdapp.android.bean;

import java.util.List;

/**
 *  搜索的分页
 * @author fbl
 *   
 * @param <T>
 */
public class PageEntityForSearch<T> {

    /** 页码 */
    private int pageNumber;//pageNumber

    /** 每页记录数 */
    private int size;//size

    /** 总页数 */
    private int totalPages;//totalPages

    /** 总记录数 */
    private int totals; //totals

    /** 结果列表 */
    private List<T> contents; // 不要命名为content，免得重复解析

    @Override
    public String toString() {
        return "PageEntityForSearch [pageNumber=" + pageNumber + ", size=" + size + ", totalPages=" + totalPages
                + ", totals=" + totals + ", contents=" + contents + "]";
    }

    public PageEntityForSearch() {
        super();
    }

    public PageEntityForSearch(int pageNumber, int size, int totalPages, int totals, List<T> contents) {
        super();
        this.pageNumber = pageNumber;
        this.size = size;
        this.totalPages = totalPages;
        this.totals = totals;
        this.contents = contents;
    }

    public int getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(int pageNumber) {
        this.pageNumber = pageNumber;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getTotalPages() {
        return totalPages;
    }

    public void setTotalPages(int totalPages) {
        this.totalPages = totalPages;
    }

    public int getTotals() {
        return totals;
    }

    public void setTotals(int totals) {
        this.totals = totals;
    }

    public void setContent(List<T> content) {
        this.contents = content;
    }

    public List<T> getContent() {
        return contents;
    }

}
